package com.danco.planner.essences;

import java.util.Date;

import com.danco.planner.sortings.compareby.ICompareByDate;
import com.danco.planner.sortings.compareby.ICompareByName;

public class Lecture implements ICompareByDate,ICompareByName {

	protected String name;
	public String getName() {
		return name;
	}
	
	protected Date date;
	public Date getDate() {
		return date;
	}

	
	public Lecture(String name, Date date) {
		super();
		
		this.name = name;
		this.date = date;
	}
	
	@Override
	public String toString() {
		
		return String.format("Lecture: %1$s; Date: %2$te/%2$tm/%2$tY;",name,date);
	}


	
	@Override
	public String getNameForCompare() {
		// TODO Auto-generated method stub
		return name;
	}


	@Override
	public Date getDateForCompare() {
		// TODO Auto-generated method stub
		return date;
	}
}
